/*******************************************************************************
 * Copyright (c) 2010, 2011 AntVision.
 * All rights reserved. 
 *
 ******************************************************************************/
package com.eagle.security.entries;

import java.sql.Timestamp;

/**
 * 
 * <br/>
 * 
 * create @ 2011-2-21 下午03:59:43 <br/>
 * 
 * @author Yuan Zhengwen
 * @version 1.0.0
 */
public class UserLog {
	private long id;

	private String ip;

	private String clientInfo;

	private String username;

	private String nickname;

	private String action;

	private Timestamp occurTime;

	private String type;

	public UserLog(long id, String ip, String clientInfo, String username, String action, Timestamp occurTime, String type) {
		this.id = id;
		this.ip = ip;
		this.clientInfo = clientInfo;
		this.username = username;
		this.action = action;
		this.occurTime = occurTime;
		this.type = type;
	}

	public UserLog(long id, String ip, String clientInfo, String username, String action, Timestamp occurTime, String type, String nickname) {
		this.id = id;
		this.ip = ip;
		this.clientInfo = clientInfo;
		this.username = username;
		this.action = action;
		this.occurTime = occurTime;
		this.type = type;
		this.nickname = nickname;
	}

	public UserLog(long id) {
		this.id = id;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getClientInfo() {
		return clientInfo;
	}

	public void setClientInfo(String clientInfo) {
		this.clientInfo = clientInfo;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getAction() {
		return action;
	}

	public void setAction(String action) {
		this.action = action;
	}

	public Timestamp getOccurTime() {
		return occurTime;
	}

	public void setOccurTime(Timestamp occurTime) {
		this.occurTime = occurTime;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

}
